﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="ConfirmOrder.aspx.cs" Inherits="eStore.UI.ConfirmOrderPage" MaintainScrollPositionOnPostback="true" %>
<%@ Import Namespace="eStore.Helpers" %>

<%@ Register Src="~/eStore/Controls/CartLink.ascx" TagPrefix="ws" TagName="CartLink" %>
<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" />
        <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper admin estore estorecart">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true"
                UseLowerCaseArtisteerClasses="true" />
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                    <div class="cart-link">
                        <ws:CartLink ID="lnkCart" runat="server" EnableViewState="false" />
                    </div>
                    <div class="cleared">
                    </div>
                    <asp:Panel ID="pnlCartItems" runat="server" CssClass="cart">
                        <fieldset>
                            <legend>
                                <asp:Literal ID="litCartHeader" runat="server" />
                            </legend>
                            <div class="settingrow">
                                <table class="cartgrid">
                                    <asp:Repeater ID="rptCartItems" runat="server">
                                        <HeaderTemplate>
                                            <tr class="header">
                                                <th>
                                                    <%# Resources.eStoreResources.CartItemsHeading%>
                                                </th>
                                                <th>
                                                    <%# Resources.eStoreResources.CartPriceHeading%>
                                                </th>
                                                <th>
                                                    <%# Resources.eStoreResources.CartQuantityHeading%>
                                                </th>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr class="items">
                                                <td>
                                                    <%# Eval("Name")%>
                                                </td>
                                                <td class="price">
                                                    <%# StoreHelper.FormatPrice(Eval("Price").ToString(), currencyCulture) %>
                                                </td>
                                                <td class="quantity">
                                                    <%# Eval("Quantity") %>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <tr class="altitems">
                                                <td>
                                                    <%# Eval("Name")%>
                                                </td>
                                                <td class="price">
                                                    <%# StoreHelper.FormatPrice(Eval("Price").ToString(), currencyCulture) %>
                                                </td>
                                                <td class="quantity">
                                                    <%# Eval("Quantity") %>
                                                </td>
                                            </tr>
                                        </AlternatingItemTemplate>
                                    </asp:Repeater>
                                    <asp:Panel ID="pnlSubTotal" runat="server" CssClass="settingrowtight storerow">
                                        <tr class="footer">
                                            <th>
                                                <mp:SiteLabel ID="SiteLabel1" runat="server" CssClass="settinglabeltight storelabel"
                                                    ConfigKey="CartSubTotalLabel" ResourceFile="eStoreResources" />
                                            </th>
                                            <th class="price">
                                                <asp:Literal ID="litSubTotal" runat="server" />
                                            </th>
                                            <th>
                                            </th>
                                        </tr>
                                    </asp:Panel>
                                    <asp:Panel ID="pnlDiscount" runat="server" CssClass="settingrowtight storerow">
                                        <tr class="footer">
                                            <th>
                                                <mp:SiteLabel ID="SiteLabel11" runat="server" CssClass="settinglabeltight storelabel"
                                                    ConfigKey="CartDiscountTotalLabel" ResourceFile="eStoreResources" />
                                            </th>
                                            <th class="price">
                                                <asp:Literal ID="litDiscount" runat="server" />
                                            </th>
                                            <th>
                                            </th>
                                        </tr>
                                    </asp:Panel>
                                    <asp:Panel ID="pnlTaxTotal" runat="server" CssClass="settingrowtight storerow">
                                        <tr class="footer">
                                            <th>
                                                <strong>
                                                    <mp:SiteLabel ID="SiteLabel3" runat="server" CssClass="settinglabeltight storelabel"
                                                        ConfigKey="CartTaxTotalLabel" ResourceFile="eStoreResources" />
                                                </strong>
                                            </th>
                                            <th class="price">
                                                <asp:Literal ID="litTaxTotal" runat="server" />
                                            </th>
                                            <th>
                                            </th>
                                        </tr>
                                    </asp:Panel>
                                    <asp:Panel ID="pnlOrderTotal" runat="server" CssClass="settingrowtight storerow">
                                        <tr class="footer">
                                            <th>
                                                <strong>
                                                    <mp:SiteLabel ID="SiteLabel7" runat="server" CssClass="settinglabeltight storelabel"
                                                        ConfigKey="CartOrderTotalLabel" ResourceFile="eStoreResources" />
                                                </strong>
                                            </th>
                                            <th class="price">
                                                <asp:Literal ID="litOrderTotal" runat="server" />
                                            </th>
                                            <th>
                                            </th>
                                        </tr>
                                    </asp:Panel>
                                </table>
                            </div>
                        </fieldset>
                    </asp:Panel>
                    <hr />
                    <asp:Panel ID="pnlOrderDetail" runat="server" CssClass="clear orderdetail" Visible="false">
                        <asp:Panel ID="pnlCustomer" runat="server" CssClass="floatpanel customer" DefaultButton="btnSaveAndValidate">
                            <fieldset>
                                <legend>
                                    <mp:SiteLabel ID="SiteLabel5" runat="server" ConfigKey="ConfirmOrderCustomerHeader"
                                        ResourceFile="eStoreResources" />
                                </legend>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblCustomerName" runat="server" ForControl="txtCustomerFirstName"
                                        CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerNameLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtCustomerName" CssClass="widetextbox" runat="server" MaxLength="255" />
                                    <asp:RequiredFieldValidator ID="reqCustomerName" runat="server" ControlToValidate="txtCustomerName"
                                        ValidationGroup="OrderInfo"></asp:RequiredFieldValidator>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblCustomerTelephoneDay" runat="server" ForControl="txtCustomerTelephoneDay"
                                        CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerTelephoneLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtCustomerTelephoneDay" Columns="20" runat="server" MaxLength="32" />
                                    <asp:RequiredFieldValidator ID="reqCustomerDayPhone" runat="server" ControlToValidate="txtCustomerTelephoneDay"
                                        ValidationGroup="OrderInfo"></asp:RequiredFieldValidator>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblCustomerEmail" runat="server" ForControl="txtCustomerEmail"
                                        CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerEmailLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtCustomerEmail" CssClass="widetextbox" runat="server" MaxLength="96" />
                                    <asp:RequiredFieldValidator ID="reqCustomerEmail" runat="server" ControlToValidate="txtCustomerEmail"
                                        ValidationGroup="OrderInfo"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="regexCustomerEmail" runat="server" ControlToValidate="txtCustomerEmail"
                                        ValidationGroup="OrderInfo"></asp:RegularExpressionValidator>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblCustomerCompany" runat="server" ForControl="txtCustomerCompany"
                                        CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerCompanyLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtCustomerCompany" CssClass="widetextbox" runat="server" MaxLength="255" />
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblCustomerAddress" runat="server" ForControl="txtCustomerAddress"
                                        CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerAddressLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtCustomerAddress" CssClass="widetextbox" runat="server" MaxLength="255" />
                                    <asp:RequiredFieldValidator ID="reqCustomerAddress" runat="server" ControlToValidate="txtCustomerAddress"
                                        ValidationGroup="OrderInfo"></asp:RequiredFieldValidator>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblCustomerCountry" runat="server" ForControl="ddCustomerCountry"
                                        CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerCountryLabel" ResourceFile="eStoreResources" />
                                    <asp:DropDownList ID="ddCustomerCountry" runat="server" DataValueField="ISOCode2"
                                        DataTextField="Name">
                                    </asp:DropDownList>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblCustomerCity" runat="server" ForControl="txtCustomerCity" CssClass="settinglabel"
                                        ConfigKey="CartOrderInfoCustomerCityLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtCustomerCity" CssClass="widetextbox" runat="server" MaxLength="255" />
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblCustomerPostalCode" runat="server" ForControl="txtCustomerPostalCode"
                                        CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerPostalCodeLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtCustomerPostalCode" Columns="20" runat="server" MaxLength="20" />
                                </div>
                            </fieldset>
                        </asp:Panel>
                        <asp:Panel ID="pnlBillingInfo" runat="server" CssClass="floatpanel ">
                            <fieldset>
                                <legend>
                                    <mp:SiteLabel ID="SiteLabel10" runat="server" ConfigKey="ConfirmOrderBillingHeader"
                                        ResourceFile="eStoreResources" />
                                </legend>
                                <div class="settingrow">
                                    <asp:Button ID="lnkCopyCustomerToBilling" runat="server" CssClass="buttonlink" CausesValidation="false" />
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblBillingName" runat="server" ForControl="txtBillingFirstName"
                                        CssClass="storelabel" ConfigKey="CartOrderInfoBillingFirstNameLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtBillingFirstName" CssClass="widetextbox" runat="server" MaxLength="255" />
                                    <asp:RequiredFieldValidator ID="reqBillingFirstName" runat="server" ControlToValidate="txtBillingFirstName"
                                        ValidationGroup="OrderInfo"></asp:RequiredFieldValidator>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblBillingCompany" runat="server" ForControl="txtBillingCompany"
                                        CssClass="storelabel" ConfigKey="CartOrderInfoBillingCompanyLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtBillingCompany" CssClass="widetextbox" runat="server" MaxLength="255" />
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblBillingAddress1" runat="server" ForControl="txtBillingAddress1"
                                        CssClass="storelabel" ConfigKey="CartOrderInfoBillingAddress1Label" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtBillingAddress1" CssClass="widetextbox" runat="server" MaxLength="255" />
                                    <asp:RequiredFieldValidator ID="reqBillingAddress1" runat="server" ControlToValidate="txtBillingAddress1"
                                        ValidationGroup="OrderInfo"></asp:RequiredFieldValidator>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblBillingCity" runat="server" ForControl="txtBillingCity" CssClass="storelabel"
                                        ConfigKey="CartOrderInfoBillingCityLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtBillingCity" CssClass="widetextbox" runat="server" MaxLength="255" />
                                    <asp:RequiredFieldValidator ID="reqBillingCity" runat="server" ControlToValidate="txtBillingCity"
                                        ValidationGroup="OrderInfo"></asp:RequiredFieldValidator>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblBillingCountry" runat="server" ForControl="ddBillingCountry"
                                        CssClass="storelabel" ConfigKey="CartOrderInfoBillingCountryLabel" ResourceFile="eStoreResources" />
                                    <asp:DropDownList ID="ddBillingCountry" runat="server" DataValueField="ISOCode2"
                                        DataTextField="Name">
                                    </asp:DropDownList>
                                </div>
                                <div class="settingrow">
                                    <mp:SiteLabel ID="lblBillingPostalCode" runat="server" ForControl="txtBillingPostalCode"
                                        CssClass="storelabel" ConfigKey="CartOrderInfoBillingPostalCodeLabel" ResourceFile="eStoreResources" />
                                    <asp:TextBox ID="txtBillingPostalCode" Columns="20" runat="server" MaxLength="20" />
                                    <asp:RequiredFieldValidator ID="reqBillingPostalCode" runat="server" ControlToValidate="txtBillingPostalCode"
                                        ValidationGroup="OrderInfo"></asp:RequiredFieldValidator>
                                </div>
                            </fieldset>
                        </asp:Panel>
                        <div class="settingrow">
                            <asp:Label ID="lblMessage" runat="server" CssClass="txterror"></asp:Label>
                        </div>
                        <div class="settingrow">
                            <asp:Panel ID="pnlRequireLogin" runat="server" CssClass="login">
                                <portal:SignInOrRegisterPrompt ID="srPrompt" runat="server" />
                            </asp:Panel>
                        </div>
                        <div class="settingrow">
                            <div class="button">
                                <portal:mojoButton ID="btnSaveAndValidate" Text="Update" runat="server" ValidationGroup="OrderInfo" />
                                <portal:mojoButton ID="btnContinue" Text="Continue" CssClass="checkoutlink" runat="server" Enabled="false" />&nbsp;&nbsp;
                            </div>
                            <portal:PaymentAcceptanceMark ID="pam1" runat="server" />
                        </div>
                        <div class="settingrow or">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Literal
                                ID="litOr" runat="server" />
                        </div>
                        <div class="cleared">
                        </div>
                    </asp:Panel>
                    <div class="settingrow paypal">
                        &nbsp;&nbsp;&nbsp;&nbsp;<asp:ImageButton ID="btnPayPal" runat="server" ImageUrl="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"
                            AlternateText="Checkout with PayPal" />
                        <portal:mojoGCheckoutButton ID="btnGoogleCheckout" runat="server" />
                        <asp:Literal ID="litPayPalFormVariables" runat="server" />
                    </div>
                    <div class="settingrow google">
                        <portal:mojoLabel ID="lblGoogleMessage" runat="server" CssClass="txterror" Visible="false" />
                    </div>
                    <portal:CommerceTestModeWarning ID="commerceWarning" runat="server" />
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
